using System;
using System.Collections.Generic;
using NHibernate.Search.Attributes;
using NHibernate.Search;

namespace Ic.Model
{
	#region BandsmanStyle

	/// <summary>
	/// BandsmanStyle object for NHibernate mapped table 'TB_BandsmanStyle'.
	/// </summary>
	[Serializable]
	[TableInfo(TableName = "TB_BandsmanStyle", PrimaryKey = "Id" , Columns="Id,BandManId,BandManStyle,RegDate")]
	[Indexed(Index = "BandsmanStyle")] 
	public class BandsmanStyle
	{
		#region Member Variables
		
		protected int _id;
		protected int _bandManId;
		protected string _bandManStyle;
		protected DateTime _regDate;

		#endregion

		#region Constructors

		public BandsmanStyle() { }

		public BandsmanStyle( int bandManId, string bandManStyle, DateTime regDate )
		{
			this._bandManId = bandManId;
			this._bandManStyle = bandManStyle;
			this._regDate = regDate;
		}

		#endregion

		#region Public Properties

		[DocumentId]
		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public virtual int BandManId
		{
			get { return _bandManId; }
			set { _bandManId = value; }
		}

		[Field(Index.Tokenized, Store = Store.Yes)]
		public virtual string BandManStyle
		{
			get { return _bandManStyle; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BandManStyle", value, value.ToString());
				_bandManStyle = value;
			}
		}

		public virtual DateTime RegDate
		{
			get { return _regDate; }
			set { _regDate = value; }
		}

		

		#endregion
	}
	#endregion
}